package com.quectel.cms.vo.scheduling;

import com.quectel.core.module.dept.dto.DeptPersonDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author zhangheng
 * @email nolan.zhang@quectel.com
 * @date 2023/7/27 9:11
 * @description new java file header...
 */
@Data
@Schema
public class SchedulingLeaveBalanceRep {
    @Schema(description = "人员信息")
    private DeptPersonDto deptPerson;

    @Schema(description = "人员信息")
    private List<LeaveBalance> leaveBalanceList;

    @Data
    @Schema
    public static class LeaveBalance {
        @Schema(description = "假期类型")
        private Long leaveId;

        @Schema(description = "假期类型")
        private Byte leaveType;

        @Schema(description = "假期单位")
        private Byte unit;

        @Schema(description = "剩余假期数量")
        private BigDecimal restBalance;
    }
}
